﻿using System.Collections.Generic;
using IdeaBlade.Application.Framework.Core.DesignTimeSupport;

namespace CoProjectModel
{
    /// <summary>
    /// Concrete EntityManager used during design time
    /// </summary>
    public class DesignTimeEntityManagerProvider : BaseDesignTimeEntityManagerProvider<CoProjectEntities>
    {
        public DesignTimeEntityManagerProvider(params ISampleDataProvider<CoProjectEntities>[] sampleDataProviders)
            : base(sampleDataProviders)
        {
        }

        protected override CoProjectEntities CreateEntityManager()
        {
            // Return a disconnected EntityManager. During design time we are working with cached sample data
            return new CoProjectEntities(false /* don't connect */);
        }
    }
}